<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>积分平台</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" type="text/css" href="__INDEX__/mui/css/mui.min.css"/>
		<link rel="stylesheet" type="text/css" href="__INDEX__/css/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="__INDEX__/css/common.css"/>
		<link rel="stylesheet" type="text/css" href="__INDEX__/css/leaveInfo.css"/>
		<script src="__INDEX__/js/lib/font.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body >
	    <header class="mui-bar mui-bar-nav">
	        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	        <h1 class="mui-title">{$title}</h1>
	        <span class="mui-pull-right del" dataid="{$id}">删除</span>
	    </header>
	    <div class="mui-content">
	    	<div class="modular">
	    		<div class="title">
	    			<div class="head-portrait mui-pull-left">
		        		<!--<span class="portrait-name">余光</span>-->
						{if $user['portrait']}
						<img src="{:getImg($user['portrait'])}" width="100%" style="border-radius: 50%"/>
						{else}
						<img src="__INDEX__/images/touxiang.jpg" width="100%" style="border-radius: 50%"/>
						{/if}
		        	</div>
		        	<p class="head-name mui-pull-left">{$user['nickname']}</p>
		        	<p class="title-dep mui-pull-right">{$user['departmen_name']}/{$user['position_name']}</p>
	    		</div>
	    	</div>
	    	<div class="modular leaveInfo">
	    		<p>请假类型：<span>{$data['leave_type']}</span></p>
	    		<p>开始时间：<span>{$data['starttime']|date="Y年m月d日 H:i"}</span></p>
	    		<p>结束时间：<span>{$data['endtime']|date="Y年m月d日 H:i"}</span></p>
	    	</div>
	    	<div class="modular">
	    		<div class="cont">
	    			<h3>请假理由：</h3>
	    			<p>{$data['reason']}</p>
					{if $data['leave_picture']}
					{foreach $data['leave_picture'] as $value}
    			<img src="{:getImg($value)}"/>
					{/foreach}
					{/if}
	    			<!--<img src="__INDEX__/images/noInfo.png"/>-->
	    			<div class="from">
	    				<p>{$user['company_name']}/{$user['departmen_name']}</p>
	    				<p>{$data['time']|date="Y年m月d日"}</p>
	    			</div>
	    		</div>
	    	</div>
	    	<div class="modular examine">
	    		<div class="examine-row">
	    			<div class="examine-row-item">
	    				<!--<div class="head-portrait mui-pull-left">-->
		        			<!--<span class="portrait-name">余光</span>-->
			        	<!--</div>-->
			        	<p class="head-name mui-pull-left">{$user['nickname']}</p>
	    			</div>
	    			<div class="examine-row-item">
	    				<span class="examine-step sendOut">发起申请</span>
	    			</div>
	    			<div class="examine-row-item">
	    				<span class="examine-time">{$data['time']|date="Y年m月d日 H:i"}</span>
	    			</div>
	    			<div class="examine-line"></div>
	    		</div>
				{if $data['status']==0}
	    		<div class="examine-row">
	    			<div class="examine-row-item">
	    				<!--<div class="head-portrait mui-pull-left" style="background: #78B6FF;">-->
		        			<!--<span class="portrait-name">余光</span>-->
			        	<!--</div>-->
			        	<p class="head-name mui-pull-left">{$thisuser['nickname']}</p>
	    			</div>
	    			<div class="examine-row-item">
	    				<span class="examine-step approval">审批中</span>
	    			</div>
	    			<div class="examine-row-item">
	    				<span class="examine-time">等待中</span>
	    			</div>
	    			<div class="examine-line"></div>
	    		</div>
				{elseif $data['status']==1}
				<div class="examine-row">
					<div class="examine-row-item">
						<!--<div class="head-portrait mui-pull-left" style="background: #78B6FF;">-->
						<!--<span class="portrait-name">余光</span>-->
						<!--</div>-->
						<p class="head-name mui-pull-left">{$thisuser['nickname']}</p>
					</div>
					<div class="examine-row-item">
						<span class="examine-step complete">已同意</span>
					</div>
					<div class="examine-row-item">
						<span class="examine-time">{$data['examine_time']|date="Y年m月d日 H:i"}</span>
					</div>
					<div class="examine-line" style="display: block;"></div>
				</div>
				{elseif $data['status']==2}
				<div class="examine-row">
					<div class="examine-row-item">
						<!--<div class="head-portrait mui-pull-left" style="background: #78B6FF;">-->
						<!--<span class="portrait-name">余光</span>-->
						<!--</div>-->
						<p class="head-name mui-pull-left">{$thisuser['nickname']}</p>
					</div>
					<div class="examine-row-item">
						<span class="examine-step rebut">已驳回</span>
					</div>
					<div class="examine-row-item">
						<span class="examine-time">{$data['examine_time']|date="Y年m月d日 H:i"}</span>
					</div>
					<div class="examine-line"></div>
				</div>
				{/if}
	    		<!--<div class="examine-row">-->
	    			<!--<div class="examine-row-item">-->
	    				<!--<div class="head-portrait mui-pull-left" style="background:#F5A623;">-->
		        			<!--<span class="portrait-name">余光</span>-->
			        	<!--</div>-->
			        	<!--<p class="head-name mui-pull-left">余光</p>-->
	    			<!--</div>-->
	    			<!--<div class="examine-row-item">-->
	    				<!--<span class="examine-step approval">审批中</span>-->
	    			<!--</div>-->
	    			<!--<div class="examine-row-item">-->
	    				<!--<span class="examine-time">等待中</span>-->
	    			<!--</div>-->
	    			<!--<div class="examine-line"></div>-->
	    		<!--</div>-->
	    	</div>
	    	<div class="btn-footer">
	    		<button class="agree" dataid="{$data['id']}">同意</button>
	    		<span class="btn-line"></span>
	    		<button class="reject" dataid="{$data['id']}">驳回</button>
	    	</div>
	    </div>
		<script src="__INDEX__/js/lib/zepto.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/mui/js/mui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/mui/js/mui.view.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/layer_mobile/layer.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/js/common.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/js/lib/iscroll.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/js/leaveInfo.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
